<cfif Not IsDefined("session.id")>
		<cflocation url = "/ecada/" addToken = "no">
</cfif>
	
<cfif IsDefined("session.experiment")>
	<cfdump var="#session.experiment#">
	<cfset experiment = session.experiment>
<cfelse>
	<cflocation url="/ecada/">
</cfif>

<cfif IsDefined("form.DeleteID")>
	<cfquery datasource="exp">
		DELETE FROM stim
		WHERE id = #DeleteID#
	</cfquery>
	
	<cfset session.message = "Deleted Stimuli!">
	<cflocation url="./../">
<cfelse>
	<cfset session.message = "Unknown Stimuli!">
	<cflocation url="./../">
</cfif>


